import java.util.Comparator;


public class ValueMap implements Comparable{
	
	public String name;
	public float value;

	public ValueMap(String name, float value) {
		this.name = name;
		this.value = value;
	}


	@Override
	public int compareTo(Object arg0) {
		if(arg0.getClass()!=ValueMap.class)
			return 0;
		ValueMap o1 = (ValueMap) arg0;
		
		if (this.value > o1.value)
			return -1;
		else if (this.value < o1.value)
			return 1;
		else
			return 0;
	}
	
	
	
}
